{% extends "base.html" %}
{% block conetnt %}
    <section class="content-header">
        <h1>教师端管理系统</h1>
        <ol class="breadcrumb">
            <li><a href="#"><i class="fa fa-dashboard"></i>签到管理</a></li>
            <li class="active">签到详情</li>
        </ol>
    </section>
    <section class="content" id="showcontent">
        <div class="row">
            <div class="col-md-12">
                <div class="box box-primary">
                    <div class="box-header">
                         <h3 class="box-title">班级总人数:<i style="color:red;">&nbsp;{{ students_sum }}</i> </h3>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                         <h3 class="box-title">签到总人数:<i style="color:red;">&nbsp;{{ sign_sum }}</i> </h3>
                    </div>
                    <div class="box-body table-responsive no-padding">
                        <table class="table table-hover">
                            <tbody>
                            <tr>
                                <th>编号</th>
                                <th>姓名</th>
                                <th>是否签到</th>
                            </tr>
                            {% for student in students %}
                                <tr>
                                    <td>{{ student.id }}</td>
                                    <td>{{ student.name }}</td>
                                    {% if student.is_sign %}
                                        <td>已签到</td>
                                    {% else %}
                                        <td>未签到</td>
                                    {% endif %}
                                </tr>
                            {% endfor %}
                            </tbody>
                        </table>
                    </div>
                </div>
            </div>
        </div>
    </section>
{% endblock %}